package com.kgcx.common.client.price;

import com.kgcx.common.client.price.pojo.MileageRecord;
import com.kgcx.dbutils.core.model.RowMap;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(name = "price")
public interface MileageLocationClient {
    @GetMapping("mileagerecord/getDriverLocation")
    Map<String, RowMap> getDriverLocation(@RequestParam("driverIds") String driverIds);

    @PostMapping("mileagerecord/recordStartMile")
    MileageRecord recordStartMile(@RequestBody MileageRecord mileageRecord);

    @PostMapping("mileagerecord/recordEndMile")
    MileageRecord recordEndMile(@RequestBody MileageRecord mileageRecord);
}
